import request from "@/axios";
// 登录接口
export function login(username = "admin", password = "admin") {
  return request.post("/admin/login", {
    username,
    password,
  });
}
// 获取用户信息接口
export function getInfo() {
  return request.post("/admin/getinfo");
}

//退出登录接口
export function logout(token) {
  return request.post("/admin/logout", {
    token,
  });
}


